package com.mayuanfei.controller;

import com.mayuanfei.pojo.UserInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO 类描述
 *
 * @author 老马
 * @date 2023-04-03 15:16
 */
@RestController
public class MyController {

    @RequestMapping("/test")
    public UserInfo test() {
        UserInfo userInfo = new UserInfo();
        userInfo.setUserid("1111");
        userInfo.setUsername("张三");
        userInfo.setAge(28);
        System.out.println(userInfo);
        return userInfo;
    }
}